package Com.HupochuanAdmin.Uil.Util;

import java.util.Hashtable;

public class AdminParameter {
	/*
	 * 单一实例
	 */
	private AdminParameter(){
		//演员列表
		this.actorListShowCol.put("showLogo", true);
		this.actorListShowCol.put("showName", true);
		
		this.actorListShowCol.put("showBaikeInfo", true);
		this.actorListShowCol.put("showBaike", true);
		this.actorListShowCol.put("showXlwb", true);
		this.actorListShowCol.put("showTxwb", true);
		this.actorListShowCol.put("showBdtb", true);
		
		this.actorListShowCol.put("showMovieInfo", false);
		this.actorListShowCol.put("showMovie", true);
		this.actorListShowCol.put("showMovieCount", true);
		
		this.actorListShowCol.put("showWeight", true);
		this.actorListShowCol.put("showCreateTime", false);
		this.actorListShowCol.put("showUpdateTime", true);
		
		//电影列表
		this.movieListShowCol.put("showLogo", true);
		this.movieListShowCol.put("showName", true);
		
		this.movieListShowCol.put("showBaikeInfo", true);
		this.movieListShowCol.put("showBaike", true);
		this.movieListShowCol.put("showArea", true);
		this.movieListShowCol.put("showType", true);
		this.movieListShowCol.put("showTypeCount", true);
		
		this.movieListShowCol.put("showDirectorInfo", false);
		this.movieListShowCol.put("showDirector", true);
		this.movieListShowCol.put("showActor", true);
		this.movieListShowCol.put("showActorCount", true);
		
		this.movieListShowCol.put("showSummaryInfo", false);
		this.movieListShowCol.put("showSummary", true);
		this.movieListShowCol.put("showReleaseDate", true);
		
		this.movieListShowCol.put("showSourceInfo", false);
		this.movieListShowCol.put("showSource", true);
		this.movieListShowCol.put("showSourceCount", true);
		
		this.movieListShowCol.put("showWeight", true);
		this.movieListShowCol.put("showCreateTime", false);
		this.movieListShowCol.put("showUpdateTime", true);
	}
	private static AdminParameter adminParameter = new AdminParameter();
	public static AdminParameter getObject(){
		return adminParameter;
	}
	
	/*
	 * 演员列表使用参数
	 */
	private Hashtable<String,Boolean> actorListShowCol = new Hashtable<String,Boolean>();
	private long actorListPageSize = 5;
	private String actorListOrder = "id";
	private boolean actorListAsc = false;
	
	/*
	 * 电影列表使用参数
	 */
	private Hashtable<String,Boolean> movieListShowCol = new Hashtable<String,Boolean>();
	private long movieListPageSize = 5;
	private String movieListOrder = "id";
	private boolean movieListAsc = false;
	
	/*
	 * 参数注入
	 */
	public Hashtable<String, Boolean> getActorListShowCol() {
		return actorListShowCol;
	}
	public void setActorListShowCol(Hashtable<String, Boolean> actorListShowCol) {
		this.actorListShowCol = actorListShowCol;
	}
	public long getActorListPageSize() {
		return actorListPageSize;
	}
	public void setActorListPageSize(long actorListPageSize) {
		this.actorListPageSize = actorListPageSize;
	}
	public String getActorListOrder() {
		return actorListOrder;
	}
	public void setActorListOrder(String actorListOrder) {
		this.actorListOrder = actorListOrder;
	}
	public boolean isActorListAsc() {
		return actorListAsc;
	}
	public void setActorListAsc(boolean actorListAsc) {
		this.actorListAsc = actorListAsc;
	}
	public long getMovieListPageSize() {
		return movieListPageSize;
	}
	public void setMovieListPageSize(long movieListPageSize) {
		this.movieListPageSize = movieListPageSize;
	}
	public Hashtable<String, Boolean> getMovieListShowCol() {
		return movieListShowCol;
	}
	public void setMovieListShowCol(Hashtable<String, Boolean> movieListShowCol) {
		this.movieListShowCol = movieListShowCol;
	}
	public String getMovieListOrder() {
		return movieListOrder;
	}
	public void setMovieListOrder(String movieListOrder) {
		this.movieListOrder = movieListOrder;
	}
	public boolean isMovieListAsc() {
		return movieListAsc;
	}
	public void setMovieListAsc(boolean movieListAsc) {
		this.movieListAsc = movieListAsc;
	}
}
